import com.wang.dao.UserMapper;
import com.wang.pojo.User;
import com.wang.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.HashMap;
import java.util.List;

public class Mytest {
    @Test
    public void mytest(){
        SqlSession sqlSession=MybatisUtils.getSqlSession();
        UserMapper userMapper=sqlSession.getMapper(UserMapper.class);
        HashMap<String,Integer> map=new HashMap<String, Integer>();
        map.put("start",0);
        map.put("page",2);
        List<User> userList=userMapper.getUserBylimit(map);
        System.out.println(userList);
        sqlSession.close();
    }
}
